package com.fxhy.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baby.bean.UserInfo;
import com.fxhy.bean.AgentUser;
import com.fxhy.bean.custom.AgentUserCustom;


public interface UserMapper {
	List<AgentUser> findUserListByMap(Map<String, Object> map);

	AgentUserCustom findCustomById(@Param("userId") Integer userId);

	AgentUserCustom findCustomByPhoneNum(@Param("phoneNum") String phoneNum);

	AgentUserCustom findByInviteCode(@Param("inviteCode") String inviteCode);
	
	Integer findUserCountByPhone(@Param("phone") String phoneNum);

	Integer insertUserInfo(@Param("item") UserInfo userInfo);

	Integer findUserCountFromInviteUser(@Param("phone") String phoneNum);

	UserInfo findBabyUserByPhone(@Param("phone") String phoneNum);

	void updateBabyUser(@Param("userId") Integer userId,@Param("securityCode") String securityCode);
}	
